using UnityEngine;

public class UIManager : MonoBehaviour
{
    public static UIManager m_Intance;
    public GameObject m_panel_label;
    public UIPanelMain m_panel_main;
    
    private void Awake()
    {
        m_Intance = this;
    }

    public void OnClickButton(ESolarName pName)
    {
        if (StarManager.m_Intance.GetValueEyeMoving()) return;
        SetPanelLabelBySolarName(pName);
        m_panel_main.SetTxtTips(pName);
        StarManager.m_Intance.SetTargetBySolarName(pName);
    }

    public void SetPanelLabelBySolarName(ESolarName pName)
    {
        m_panel_label.SetActive(pName == ESolarName.None ? true : false);
    }
    
}
